package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;
import android.text.TextUtils;

import com.jy.appmarket.network.resultdata.ApkRecommendResult;

public class ApkRecommendNetEngine extends BaseNetEngine {

	private String mPackageName;

	public ApkRecommendNetEngine(String pn) {
		mPackageName = pn;
		mResultData = new ApkRecommendResult();
		mHttpMethod = HTTP_GET;
	}

	@Override
	protected String getCommand() {
		return "recommend_v2";
	}

	@Override
	protected void getParams(Context context, Map<String, String> custParams) {
		if (!TextUtils.isEmpty(mPackageName)) {
			custParams.put("packageName", mPackageName);
		}
	}
}
